<%@ page import="com.gymjournal.Training" %>



<div class="fieldcontain ${hasErrors(bean: trainingInstance, field: 'note', 'error')} ">
	<label for="note">
		<g:message code="training.note.label" default="Note" />
		
	</label>
	<g:select id="note" name="note.id" from="${com.gymjournal.Note.list()}" optionKey="id" value="${trainingInstance?.note?.id}" class="many-to-one" noSelection="['null': '']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: trainingInstance, field: 'gymnastics', 'error')} ">
	<label for="gymnastics">
		<g:message code="training.gymnastics.label" default="Gymnastics" />
		
	</label>
	<g:select name="gymnastics" from="${com.gymjournal.Gymnastic.list()}" multiple="multiple" optionKey="id" size="5" value="${trainingInstance?.gymnastics*.id}" class="many-to-many"/>
</div>

<div class="fieldcontain ${hasErrors(bean: trainingInstance, field: 'startDate', 'error')} ">
	<label for="startDate">
		<g:message code="training.startDate.label" default="Start Date" />
		
	</label>
	<g:datePicker name="startDate" precision="day"  value="${trainingInstance?.startDate}" default="none" noSelection="['': '']" />
</div>

<div class="fieldcontain ${hasErrors(bean: trainingInstance, field: 'finishDate', 'error')} ">
	<label for="finishDate">
		<g:message code="training.finishDate.label" default="Finish Date" />
		
	</label>
	<g:datePicker name="finishDate" precision="day"  value="${trainingInstance?.finishDate}" default="none" noSelection="['': '']" />
</div>

